//
//  NSString+Password.h
//  03.数据加密
//
//  Created by 刘凡 on 13-12-10.
//  Copyright (c) 2013年 itcast. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCryptor.h>
@interface NSString (MJUIEncrypt)

/**
 把该字符串转换为对应的 md5 (32位)
 */
@property (nonatomic,copy,readonly) NSString *mj_md5;

/**
 SHA1加密
 */
@property (nonatomic,copy,readonly) NSString *mj_sha1;

/**
 AES加密
 */
@property (nonatomic,copy,readonly) NSString *mj_aes128;

/**
 hmacsha1
 */
@property (nonatomic,copy,readonly) NSString *mj_hmacsha1;

- (NSString *)mj_hmacsha1:(NSString *)text key:(NSString *)secret;

@end
